package sw.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import sw.entity.Result;

public interface ResultDao extends CrudRepository<Result, Integer>{

	@Query(value="select model from Result model where model.weekness.thread.asset.project.id =?1")
	public List<Result> findBy(Integer projectId);
}
